#!/bin/bash

function build_kona()
{
(
        source build/envsetup.sh && lunch kona-eng && bash build.sh $j_arg dist
)
}


j_arg="-j22"


build_kona

rm -rf ~/files

mkdir -p ~/files


chown $USER:$USER ~/files/

cp *.img  ~/files/

cp abl.elf  ~/files/

cp obj/KERNEL_OBJ/vmlinux  ~/files/

